package com.cov.web.bean;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * @author Miki
 * @date 2022/4/12 1:14
 * @Information 疫情热点新闻
 */
public class HotNewsBean implements Serializable {


    /**
     * id : 188274
     * pubDate : 1649638922000
     * pubDateStr : 15小时前
     * title : 国家卫健委 | 昨日新增 1164 例本土确诊病例
     * summary : 4月10日0—24时，31个省（自治区、直辖市）和新疆生产建设兵团报告新增确诊病例1184例。其中境外输入病例20例（四川8例，广西4例，上海3例，广东3例，北京1例，江西1例），含9例由无症状感染者转为确诊病例（四川7例，广西2例）；本土病例1164例（上海914例，其中松江区291例、浦东新区209例、闵行区101例、嘉定区71例、杨浦区61例、徐汇区44例、黄浦区37例、静安区28例、宝山区
     * infoSource : 央视新闻app
     * sourceUrl : https://content-static.cctvnews.cctv.com/snow-book/index.html?item_id=9272768438301604239&toc_style_id=feeds_default
     * provinceId :
     * articleId : 92765
     * category : 1
     * jumpUrl :
     */

    private int id;
    private long pubDate;
    private String pubDateStr;
    private String title;
    private String summary;
    private String infoSource;
    private String sourceUrl;
    private String provinceId;
    private int articleId;
    private int category;
    private String jumpUrl;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public long getPubDate() {
        return pubDate;
    }

    public void setPubDate(long pubDate) {
        this.pubDate = pubDate;
    }

    public String getPubDateStr() {
        return pubDateStr;
    }

    public void setPubDateStr(String pubDateStr) {
        this.pubDateStr = pubDateStr;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getSummary() {
        return summary;
    }

    public void setSummary(String summary) {
        this.summary = summary;
    }

    public String getInfoSource() {
        return infoSource;
    }

    public void setInfoSource(String infoSource) {
        this.infoSource = infoSource;
    }

    public String getSourceUrl() {
        return sourceUrl;
    }

    public void setSourceUrl(String sourceUrl) {
        this.sourceUrl = sourceUrl;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public int getArticleId() {
        return articleId;
    }

    public void setArticleId(int articleId) {
        this.articleId = articleId;
    }

    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public String getJumpUrl() {
        return jumpUrl;
    }

    public void setJumpUrl(String jumpUrl) {
        this.jumpUrl = jumpUrl;
    }

    public HotNewsBean() {
        super();
    }

    public HotNewsBean(int id, long pubDate, String pubDateStr, String title, String summary, String infoSource, String sourceUrl, String provinceId, int articleId, int category, String jumpUrl) {
        this.id = id;
        this.pubDate = pubDate;
        this.pubDateStr = pubDateStr;
        this.title = title;
        this.summary = summary;
        this.infoSource = infoSource;
        this.sourceUrl = sourceUrl;
        this.provinceId = provinceId;
        this.articleId = articleId;
        this.category = category;
        this.jumpUrl = jumpUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("pubDate", getPubDate())
                .append("pubDateStr", getPubDateStr())
                .append("title", getTitle())
                .append("summary", getSummary())
                .append("infoSource", getInfoSource())
                .append("sourceUrl", getSourceUrl())
                .append("provinceId", getProvinceId())
                .append("articleId", getArticleId())
                .append("jumpUrl", getJumpUrl())
                .toString();
    }
}
